package com.bing;

/**
 * Created by kaibb on 15-10-20.
 */
public interface Constant {

    String USER_AGENT = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/44.0.2403.89 Chrome/44.0.2403.89 Safari/537.36"; //模拟浏览器User-Agent

    String BASE_URL = "http://www.mafengwo.cn/"; //马蜂蜗网址

    String QUESTIONS = BASE_URL + "wenda/detail-%s.html"; //问题网址

    String ANSWER = BASE_URL + "qa/ajax_pager.php?_uid=0&qid=%s&action=question_detail&start=%s"; //更多回答抓取坡地

    String INDEX = BASE_URL + "wenda/";

    String QUESTION = BASE_URL + "qa/ajax_pager.php?type=0&mddid=0&tids=&app_link=&action=question_index&start=%s";

    String GET_CODE = "https://passport.mafengwo.cn/api.php/verifyCode"; //马蜂蜗验证码

    int ANSWER_NUM = 50;   //一次加载回答更多数
    int TIMEOUT = 3 * 1000; //超时时间

    String FetchedWENTI = "fetchedWenTi"; //保存抓取内容索引文件名

    String BASE_PATH = "D:\\data\\maFeng"; //保存抓取内容文件夹名称

    String AccountsFile = "accounts.csv";

    /** user_name	联众帐号
    user_pw 	联众密码
    yzm_minlen	验证码最小长度
    yzm_maxlen	验证码最大长度
    yzmtype_mark	验证码类型
    zztool_token	软件Key（或者作者帐号）
    upload	验证码图片*/
    String DAMA = "http://bbb4.hyslt.com/api.php?mod=php&act=upload"; //联众打码平台

    String ZUOZE = "bingou";

    String VERIFY_CODE_URL = "https://passport.mafengwo.cn/api.php/checkCode?code=";  //马蜂蜗登陆时check验证码

    String LOGIN = "https://passport.mafengwo.cn/login/";  //马蜂蜗登陆密码

    String HOME_PAGE = "http://www.mafengwo.cn/u/%s.html"; //用户主页

    String FENGWO_USERNAME = "www@kaibb.com";
    String FENGWO_PASSWORD = "abc1234";

    String NOTE_URL = BASE_URL + "u/%s/note.html"; //游记首页
    String NOTE_MORE = BASE_URL + "wo/ajax_post.php"; //游记加载更多
    String DIPING_URL = BASE_URL + "u/%s/review.html"; //点拼首页
    String DIPING_MORE = BASE_URL + "home/ajax_review.php?act=loadList&filter=0&offset=%s&limit=20&uid=%s&sort=1"; //用户点评

    String MY_ANSWER_FIRST=BASE_URL+"wenda/u/answer/%s_0.html#list" ;//我的回答首页
    String MY_QUESTION_FIRST=BASE_URL+"wenda/u/question/%s_0.html#list" ;//我的提问首页

    String MY_ANSWER_URL = BASE_URL+"qa/ajax_pager.php?_uid=%s&uid=%s&type=0&action=u_answer_my&start=%s"; //我的回答, 分页大小10
    String MY_QUESTION_URL=BASE_URL+"qa/ajax_pager.php?_uid=%s&uid=%s&type=0&action=u_question_my&start=%s"; //我的提问,分布大小20
    int PAGE_SIZE = 200;
    int BATCH_SIZE = 40;

    String WEN_TI = "wenTi";
    int TOTAL_QUESTIONS = 5000000;
}
